/*
 * Copyright (c) 2020, 2023, 3044483124@qq.com All rights reserved.
 *
 */
package cn.itcast;

import java.util.Calendar;

/**
 * <p>Project: JavaStudy - AITest
 * <p>Powered by jiangbo On 2023-02-17
 * 21:00:19
 * <p>Created by IntelliJ IDEA
 *
 * @author jiangbo [3044483124@qq.com]
 * @version 1.0
 * @since 8/17
 */
public class AITest {
    public static void main(String[] args) {
        System.out.println(Math.random());
        Calendar data = Calendar.getInstance();
        System.out.println(data.getTime());
        System.out.println(data.getTimeInMillis());
        System.out.println(data.get(Calendar.YEAR));
        System.out.println(data.get(Calendar.MONTH)+1);
        System.out.println(data.get(Calendar.DAY_OF_MONTH));
        System.out.println(data.get(Calendar.HOUR_OF_DAY));
        System.out.println(data.get(Calendar.MINUTE));
        System.out.println(data.get(Calendar.SECOND));
        System.out.println(data.get(Calendar.MILLISECOND));

        System.out.printf("%tY年%<tm月%<td日 %<tA%n", data.getTimeInMillis());
        System.out.printf("%tY-%<tm-%<td %n",data.getTimeInMillis());
        

        //System.out.println(data);
    }
}


